package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //登录
    boolean checkLogin(User user);

    //注册
    Integer registerUser(User user);

    //获取个人信息
    User info(Integer id);

    //根据username获得用户id
    String getIdByUsername(String username);

    List<User> getList();
}
